CUBE CONNECT Edition Help

Examples and FAQ

Items in this section include:

Example 1: Matrix and Fratar

The following two steps (MATRIX and FRATAR) set up and run the small example used in the Introduction (see Using Fratar) to illustrate convergence. It is a good example of different ways to "play" with MATRIX. The MATRIX step generates a 3 zone matrix, and the FRATAR step modifies it.

RUN PGM=MATRIX
   ZONES=3
   MATO=3ZONE.MAT,MO=1
   IF (I==1) MW[1][1]= 57 MW[1][2]= 24 MW[1][3]= 19
   IF (I==2) MW[1][1]= 64 MW[1][2]=106 MW[1][3]= 30
   IF (I==3) MW[1][1]=102 MW[1][2]= 61 MW[1][3]=137
ENDRUN
RUN PGM=FRATAR
   MATI=3ZONE.MAT
   MATO=3ZONEF.MAT,MO=1
   LOOKUP NAME=TOT,LOOKUP[1]=1,RESULT=2,LOOKUP[2]=1,RESULT=3,
   R='1 100 240',
   '2 200 200',
   '3 300 160'
   MAXRMSE=0.01 MAXITERS=10
   SETPA P[1]=TOT(1,J) A[1]=TOT(2,J) MW[1]=MI.1.1
   ACOMP=1,PCOMP=1
   MARGINS=1
ENDRUN

Frequently asked questions

Please see FAQ - FRATAR.